.class Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView$WebClient;
.super Lcom/burstly/lib/component/networkcomponent/burstly/wrapper/WebViewClientWrapper;
.source "MraidView.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "WebClient"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;


# direct methods
.method constructor <init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;Landroid/webkit/WebViewClient;)V
    .locals 0
    .parameter
    .parameter "origClient"

    .prologue
    .line 108
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView$WebClient;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    .line 109
    invoke-direct {p0, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/wrapper/WebViewClientWrapper;-><init>(Landroid/webkit/WebViewClient;)V

    .line 110
    return-void
.end method


# virtual methods
.method public onPageFinished(Landroid/webkit/WebView;Ljava/lang/String;)V
    .locals 3
    .parameter "view"
    .parameter "url"

    .prologue
    const/4 v2, 0x0

    .line 120
    invoke-super {p0, p1, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/wrapper/WebViewClientWrapper;->onPageFinished(Landroid/webkit/WebView;Ljava/lang/String;)V

    .line 121
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView$WebClient;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    new-array v1, v2, [Ljava/lang/Object;

    invoke-virtual {v0, v2, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->sendEvent(I[Ljava/lang/Object;)V

    .line 122
    return-void
.end method

.method public onPageStarted(Landroid/webkit/WebView;Ljava/lang/String;Landroid/graphics/Bitmap;)V
    .locals 3
    .parameter "view"
    .parameter "url"
    .parameter "favicon"

    .prologue
    .line 114
    invoke-super {p0, p1, p2, p3}, Lcom/burstly/lib/component/networkcomponent/burstly/wrapper/WebViewClientWrapper;->onPageStarted(Landroid/webkit/WebView;Ljava/lang/String;Landroid/graphics/Bitmap;)V

    .line 115
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView$WebClient;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    const/4 v1, 0x6

    const/4 v2, 0x0

    new-array v2, v2, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->sendEvent(I[Ljava/lang/Object;)V

    .line 116
    return-void
.end method

.method public shouldOverrideUrlLoading(Landroid/webkit/WebView;Ljava/lang/String;)Z
    .locals 2
    .parameter "view"
    .parameter "url"

    .prologue
    const/4 v0, 0x1

    .line 126
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView$WebClient;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    iget-object v1, v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->mRichMediaListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;

    if-eqz v1, :cond_0

    .line 127
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView$WebClient;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    iget-object v1, v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->mRichMediaListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;

    invoke-interface {v1, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;->onClick(Ljava/lang/String;)V

    .line 133
    :goto_0
    return v0

    .line 129
    :cond_0
    invoke-static {p2}, Landroid/webkit/URLUtil;->isHttpsUrl(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_1

    invoke-static {p2}, Landroid/webkit/URLUtil;->isHttpsUrl(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_1

    .line 130
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView$WebClient;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    invoke-virtual {v1, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->open(Ljava/lang/String;)V

    goto :goto_0

    .line 133
    :cond_1
    invoke-super {p0, p1, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/wrapper/WebViewClientWrapper;->shouldOverrideUrlLoading(Landroid/webkit/WebView;Ljava/lang/String;)Z

    move-result v0

    goto :goto_0
.end method
